package com.hopital5.zhangyz.model;

import lombok.*;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import java.util.List;

@Entity
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Label extends BaseModelAndLongId {
    private String name;
    @ManyToMany(mappedBy = "labels")
    private List<People> peoples;
}
